#!/usr/bin/env python
# -*- coding: utf-8 -*-
# --------------------------------------------------
#Author:		LJ
#Email:			admin@attacker.club
#Site:		    blog.attacker.club

#Site:blog.attacker.club  Mail:admin@attacker.club
#Date:2017-07-26 00:37:43 Last:2017-09-04 23:03:44
#Description:   
# --------------------------------------------------


family = ['Mon','Dad','bady']
LuckyNumber = [1,7,9]

print( '''
"取索引第一个,%s
"取索引第三个",%s
"取索引最后一个",%s
'''% (family[0],LuckyNumber[2],LuckyNumber[-1])
)

print (family.index('bady'))

"""
按照元素的索引（index）从列表获取单个元素,列表索引从0开始

"""